﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace KMouse
{
	static class Program
	{
        static public string[] parameters;
        static public bool call_from_cmd;

        static public DateTime time_mark_system_init;   

		/// <summary>
		/// 应用程序的主入口点。
		/// </summary>
		[STAThread]
		static void Main(string[] args)
		{
            time_mark_system_init = RTC.GetTimeMark();  //程序运行时间的起点

            Authorize.Get_Init_HW_Info_Start();              //获取信息要尽早开始，而且要通过另外一个线程去获取，加快系统运行时间

            parameters = args;
            if(args.Length > 0)
            {
                call_from_cmd = true;
            }
            Dbg.WriteLine("Main param:%", args.Length);

            for(int i = 0; i < args.Length; i++)
            {
                Dbg.WriteLine("\t Arg[%]:%", i, args[i]);
            }
            //Console.ReadLine();
            
            Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault(false);
			Application.Run(new Form_Main());
		}
	}
}
